﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.behavioralmodule.Command
{
    public abstract class Command
    {
        protected Receiver receiver;

        public Command(Receiver receiver)
        {

        }

        public abstract void Execute();
    }

    public class ConcreteCommand : Command
    {
        public ConcreteCommand(Receiver receiver) : base(receiver)
        {
        }

        public override void Execute()
        {
            this.receiver.Action();
        }
    }
}
